(component
  (type $ty-foo:foo/foo (;0;)
    (instance
      (type (;0;) u8)
      (export (;1;) "foo" (type (eq 0)))
      (type (;2;) (record (field "x" 1)))
      (export (;3;) "bar" (type (eq 2)))
      (type (;4;) (func (param "b" 3)))
      (export (;0;) "a" (func (type 4)))
    )
  )
  (import "foo:foo/foo" (instance $foo:foo/foo (;0;) (type $ty-foo:foo/foo)))
  (core module $main (;0;)
    (type (;0;) (func (param i32)))
    (type (;1;) (func (param i32 i32 i32 i32) (result i32)))
    (import "foo:foo/foo" "a" (func (;0;) (type 0)))
    (memory (;0;) 1)
    (export "memory" (memory 0))
    (export "cabi_realloc" (func 1))
    (export "a" (func 2))
    (func (;1;) (type 1) (param i32 i32 i32 i32) (result i32)
      unreachable
    )
    (func (;2;) (type 0) (param i32)
      unreachable
    )
    (@producers
      (processed-by "wit-component" "$CARGO_PKG_VERSION")
      (processed-by "my-fake-bindgen" "123.45")
    )
  )
  (alias export $foo:foo/foo "a" (func $a (;0;)))
  (core func $a (;0;) (canon lower (func $a)))
  (core instance $foo:foo/foo (;0;)
    (export "a" (func $a))
  )
  (core instance $main (;1;) (instantiate $main
      (with "foo:foo/foo" (instance $foo:foo/foo))
    )
  )
  (alias core export $main "memory" (core memory $memory (;0;)))
  (type (;1;) (func (param "b" u8)))
  (alias core export $main "a" (core func $"#core-func1 a" (@name "a") (;1;)))
  (alias core export $main "cabi_realloc" (core func $cabi_realloc (;2;)))
  (func $"#func1 a" (@name "a") (;1;) (type 1) (canon lift (core func $"#core-func1 a")))
  (export $"#func2 a" (@name "a") (;2;) "a" (func $"#func1 a"))
  (@producers
    (processed-by "wit-component" "$CARGO_PKG_VERSION")
  )
)
